/**
 *  文件名:SendPhotoActivity.java
 *  修改人:lihangjie
 *  创建时间:2015-10-3 下午11:43:47
 */
package com.sharemob.tinchat.modules.camera;

import java.io.File;

import android.annotation.SuppressLint;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.widget.ImageView;

import com.sharemob.tinchat.R;
import com.sharemob.tinchat.base.BaseActivity;
import com.sharemob.tinchat.lib.ImageUtils;
import com.sharemob.tinchat.lib.Utils;

/**
 * 
 * <一句话功能简述>
 *
 * @author lihangjie
 * version [版本号,2015-10-3 下午11:43:47]
 * @see    [相关类/方法]
 * @since  [产品/模块版本]
 *
 */
public class ReleasePhotoActivity extends BaseActivity {

	@SuppressLint("NewApi")
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		//初始化layout配置
		this.setContentView(R.layout.activity_release_photo);
		
//		Bundle bundle= getIntent().getExtras();
//		Bitmap bm_photo = (Bitmap) bundle.get("release");
		
		File file=new File(Utils.getCropPhotoFilePath().getPath());
		Bitmap bm_photo = ImageUtils.compressImageFromFile(file.getAbsolutePath());
		
		ImageView iv_release_photo=(ImageView)findViewById(R.id.iv_release_photo);
		iv_release_photo.setBackground(ImageUtils.BitmapToDrawable(bm_photo));
		
		exitView(R.id.title_back, 0, R.anim.out_to_right);
	}
	
	protected void keyEventOfListView(int position, int id) {

	}

}
